---------------------------------------------------------------------------
CompileError Traceback (most recent call last)
<ipython-input-6-831319b240cc> in <module>()
6 height = 100
7 width = 200
----> 8 X = curand((height, width), np.float32)
9 X.flags.c_contiguous
10 print (type(X))
C:\Anaconda3\lib\site-packages\pycuda\curandom.py in rand(shape, dtype, stream)
208 dest[i] = d*POW_2_M32;
209 """,
--> 210 "md5_rng_float")
211 elif dtype == np.float64:
212 func = get_elwise_kernel(
C:\Anaconda3\lib\site-packages\pycuda\elementwise.py in get_elwise_kernel(arguments, operation, name, keep, options, **kwargs)
159 """
160 func, arguments = get_elwise_kernel_and_types(
--> 161 arguments, operation, name, keep, options, **kwargs)
162
163 return func
C:\Anaconda3\lib\site-packages\pycuda\elementwise.py in get_elwise_kernel_and_types(arguments, operation, name, keep, options, use_range, **kwargs)
145
146 mod = module_builder(arguments, operation, name,
--> 147 keep, options, **kwargs)
148
149 func = mod.get_function(name)
C:\Anaconda3\lib\site-packages\pycuda\elementwise.py in get_elwise_module(arguments, operation, name, keep, options, preamble, loop_prep, after_loop)
73 "after_loop": after_loop,
74 },
---> 75 options=options, keep=keep)
76
77
C:\Anaconda3\lib\site-packages\pycuda\compiler.py in __init__(self, source, nvcc, options, keep, no_extern_c, arch, code, cache_dir, include_dirs)
289
290 cubin = compile(source, nvcc, options, keep, no_extern_c,
--> 291 arch, code, cache_dir, include_dirs)
292
293 from pycuda.driver import module_from_buffer
C:\Anaconda3\lib\site-packages\pycuda\compiler.py in compile(source, nvcc, options, keep, no_extern_c, arch, code, cache_dir, include_dirs, target)
253 options.append("-I"+i)
254
--> 255 return compile_plain(source, options, keep, nvcc, cache_dir, target)
256
257 class CudaModule(object):
C:\Anaconda3\lib\site-packages\pycuda\compiler.py in compile_plain(source, options, keep, nvcc, cache_dir, target)
76
77 if '#include' in source:
---> 78 checksum.update(preprocess_source(source, options, nvcc).encode("utf-8"))
79 else:
80 checksum.update(source.encode("utf-8"))
C:\Anaconda3\lib\site-packages\pycuda\compiler.py in preprocess_source(source, options, nvcc)
53 from pycuda.driver import CompileError
54 raise CompileError("nvcc preprocessing of %s failed" % source_path,
---> 55 cmdline, stderr=stderr)
56
57 # sanity check
CompileError: nvcc preprocessing of C:\Users\gpu\AppData\Local\Temp\tmprlf28h46.cu failed
[command: nvcc --preprocess -arch sm_61 -m64 -Ic:\anaconda3\lib\site-packages\pycuda\cuda C:\Users\gpu\AppData\Local\Temp\tmprlf28h46.cu --compiler-options -EP]